
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar">单位基本信息</td>
	</tr>
	<tr>
		<td width="100px" nowrap align="right">单位名称：</td>
		<td colspan='8'><input type="hidden"
			name="organizations/organization[0]@submit_org" value="1"> <input
			type="hidden" name="organizations/organization[0]@sequence_no"
			value="1"> <input type="hidden"
			name="organizations/organization[0]/org_code"
			value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>">
			<span name="organizations/organization[0]/cname"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_name" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">法人代码：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/org_no"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_no" />
		</span></td>
		<td nowrap align="right">营业执照注册号：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/org_licence"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence" />
		</span></td>
		
	</tr>
	<tr>
	    <td nowrap align="right">通讯地址：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/address"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/address" />
		</span></td>
	    <td nowrap align="right">生产、办公面积：</td>
		<td colspan='3'>
		    <span name="organizations/organization[0]/office_product_develope" id="office_product_develope"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/office_product_develope" /></span>平方米
		    <input type="hidden" id='office_develope' value="<x:out select='$xmlData/data/organizations/organization[@submit_org=1]/office_develope' />">
		    <input type="hidden" id='office_product' value="<x:out select='$xmlData/data/organizations/organization[@submit_org=1]/office_product' />">
		    <script type="text/javascript">
	           $(function() {
		             var office_develope=$("#office_develope").val();
		             if(office_develope=="" || office_develope=='由系统统计')
		            	 office_develope=0;
		             var office_product=$("#office_product").val();
		             if(office_product=="" || office_product=='由系统统计')
		            	 office_product=0;
		             var count=parseInt(office_develope)+parseInt(office_product);
		             $("#office_product_develope").text(count);
	           });
            </script>
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>行政办公地址：</td>
		<td colspan='4'>
		    <input name="proposal/address_office" style="width: 95%;"  onfocus="InitInput.setMaxLength(this,100)"  class="input_text required" label='行政办公地址' value="<x:out
					select="$xmlData/data/proposal/address_office" />">
		</td>
		<td nowrap align="right">电子邮箱：</td>
		<td colspan='3'>
		    <span
			name="organizations/organization[0]/email"> 
		    <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/email" />
		    </span>
		</td>
	</tr>
	<tr>
		<td nowrap align="right">传真：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/fax"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/fax" />
		</span></td>
		<td nowrap align="right">单位网址：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/http">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/http" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">公司员工人数：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />人
		</span></td>
		<td nowrap align="right">大专以上人员数：</td>
		<td colspan='3'>
		    <span name="organizations/organization[0]/degree_total" id="degree_total"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total" /></span>人
		    <input type="hidden" id='degree_college' value="<x:out select='$xmlData/data/organization_persons/degree_college' />">
		    <input type="hidden" id='degree_bachelor' value="<x:out select='$xmlData/data/organization_persons/degree_bachelor' />">
		    <input type="hidden" id='degree_master' value="<x:out select='$xmlData/data/organization_persons/degree_master' />">
		    <input type="hidden" id='degree_doctor' value="<x:out select='$xmlData/data/organization_persons/degree_doctor' />">
		    <script type="text/javascript">
	           $(function() {
		             var degree_college=$("#degree_college").val();
		             if(degree_college=="")
		            	 degree_college=0;
		             var degree_bachelor=$("#degree_bachelor").val();
		             if(degree_bachelor=="")
		            	 degree_bachelor=0;
		             var degree_master=$("#degree_master").val();
		             if(degree_master=="")
		            	 degree_master=0;
		             var degree_doctor=$("#degree_doctor").val();
		             if(degree_doctor=="")
		            	 degree_doctor=0;
		             var count=parseInt(degree_college)+parseInt(degree_bachelor)+parseInt(degree_master)+parseInt(degree_doctor);
		             $("#degree_total").text(count);
	           });
            </script>
		</td>
	</tr>	
	<tr>
	    <td nowrap align="right">研发人员数：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/work_yanfa"> <x:out
					select="$xmlData/data/organization_persons/work_yanfa" />人
		</span></td>
	    <td nowrap align="right">开户银行：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/bank_orgname"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">银行账号：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/bank_account"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account" />
		</span></td>
		<td nowrap align="right">信用等级：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/bank_credit"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit" />
		</span></td>
	</tr>
	<tr>
	    <td nowrap align="right">注册时间：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/registe_date"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date" />
		</span></td>
	    <td nowrap align="right">注册资金：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/registe_fund"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund" />万<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">其中外资比例：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/registe_fund_foreign_rate">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_rate" />%
		</span></td>
		<td nowrap align="right">注册类型：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/nature_name"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name" />
		</span></td>
	</tr>
	<tr>
		<td width="" nowrap align="right">经营范围：</td>
		<td colspan='8'><span
			name="organizations/organization[0]/opt_scope"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/opt_scope" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">经营方式：</td>
		<td colspan='8'>
		    <span name="organizations/organization[0]/opt_model_name">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_model_name" />
		    </span>
		    <span style="display: none" name="organizations/organization[0]/opt_model_value">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_model_value" />
		    </span>
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">企业特性：</td>
		<td colspan='8'>
		    <span name="organizations/organization[0]/chk_characteristic_name">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/chk_characteristic_name" />
		    </span>
		    <span style="display: none" name="organizations/organization[0]/chk_characteristic_value">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/chk_characteristic_value" />
		    </span>
		</td>
	</tr>
</table>
<br>
					<div class="t_bar">单位人员情况</div>
					<table class="t_css" cellpadding="0" cellspacing="0" width="100%" id='orgInfo2'align="center">
							<thead>
							<tr>
								<th class="TblHead" align="center" width="100px">
								&nbsp;
								</th>
								<th class="TblHead" align="center">
									姓名
								</th>
								<th class="TblHead" align="center">
									职务
								</th>
								<th class="TblHead" align="center">
									职称
								</th>
								<th class="TblHead" align="center">
									办公电话
								</th>
								<th class="TblHead" align="center">
									手机
								</th>
								
							</tr>
							</thead>
							<tbody id="tab">
							
							<tr>
								<td align="right">
									单位负责人：
								</td>
								<td align="center">
									
									<span name="organization_persons/organization_person[00]/cname">
										<x:out
											select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" />
									</span>
									<input type="hidden"
										  name="organization_persons/organization_person[00]@psn_type" value="fuzeren">
								</td>
								<td align="center">
									<span
										name="organization_persons/organization_person[00]/position">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/position"/>
									</span>
								</td>
								<td align="center">
									<span name="organization_persons/organization_person[00]/prof_title_name">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/prof_title_name"/>
									</span>
									<span style="display:none" name="organization_persons/organization_person[1]/prof_title_value">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/prof_title_value"/>
									</span>
								</td>
								<td align="center">
									<span name="organization_persons/organization_person[00]/tel">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/tel"/>
									</span>
								</td>
								<td align="center">
									 <span name="organization_persons/organization_person[00]/mobile">
										<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile"/>
									</span>
								</td>
								
							</tr>
									<tr>
									<td align="right">法人代表：</td>
									<td align="center">
									    <span name="organization_persons/organization_person[01]/cname">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
										</span>
										<input type="hidden"
										  name="organization_persons/organization_person[01]@psn_type" value="faren">
									</td>
									<td align="center">
									     <span name="organization_persons/organization_person[01]/position">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/position"/>
										</span>
									</td>	
									<td align="center">
								        <span name="organization_persons/organization_person[01]/prof_title_name">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/prof_title_name"/>
										</span>
										<span style="display:none" name="organization_persons/organization_person[01]/prof_title_value">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/prof_title_value"/>
										</span>
									</td>
									<td align="center">
									    <span name="organization_persons/organization_person[01]/tel">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel"/>
										</span>
									</td>
									<td align="center">
									    <span name="organization_persons/organization_person[01]/mobile">
											<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>
										</span>
									</td>
							</tr>
							</tbody>
					</table>
					
<br>
<div class="t_bar">主要股东</div>
<table border="0" cellspacing="0" cellpadding="0" class="table01">
	<thead>
		<tr>
			<th align="center" width="40%" nowrap>主要股东名称</th>
			<th width="20%" align="center">股东出资额(万元)</th>
			<th width="20%">出资形式</th>
			<th width="20%">所占股份比例（%）</th>

		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach
			select="$xmlData/data/organization_shareholders/shareholder"
			var="shareholder">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span style='display: none'
					name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
					<span
					name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						<x:out select="$shareholder/cname" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						<x:out select="$shareholder/invest_amount" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						<x:out select="$shareholder/invest_type_name" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						<x:out select="$shareholder/invest_percent" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<br>
<div class="t_bar">机构拥有知识产权状况: （单位：件）</div>
<table class="table01 " width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<th rowspan="2">专利申请总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">专利授权总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">软件著作权</th>
		<th rowspan="2">（IC）布图设计专有权</th>
	</tr>
	<tr>
		<th>发明</th>
		<th>实用新型</th>
		<th>外观设计</th>
		<th>发明</th>
		<th>实用新型</th>
		<th>外观设计</th>
	</tr>
	<tbody id="tab">
	    <tr>
	        <td align="center">
	            <input type="hidden"
			       name="knowledges/knowledge[0]@sequence_no" value="1">
	            <span name="knowledges/knowledge[0]/kr_request">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_invent" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_new" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_outward" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_invent" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_new" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_outward" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_soft">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_soft" />
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_ic">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_ic" />
	            </span>
	        </td>
	    </tr>
	</tbody>
</table>
<br>
<div class="t_bar">近三年曾获政府资助的情况（金额：万元）</div>
<table border="0" cellspacing="0" cellpadding="0" class="table01">
	<thead>
		<tr>
			<th align="center" nowrap>项目名称</th>
			<th width="13%" align="center">资助部门</th>
			<th width="11%">资助时间</th>
			<th width="11%">资助金额</th>
			<th width="10%">项目验收情况</th>
			<th width="10%">验收时间</th>
			<th width="9%" nowrap="nowrap">资助形式</th>
			<th width="20%">借款偿还情况</th>
			<th width="10%">还款时间</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project" var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/ctitle"> <x:out
							select="$research/ctitle" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/award_dept"> <x:out
							select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_date"> <x:out
							select="$research/award_date" />
				</span></td>
				<td align="right"><span
					name="research/fund_project[${flag}${index}]/award_amt"> <x:out
							select="$research/award_amt" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/accept_date"> <x:out
							select="$research/accept_date" />
				</span></td>
				<td align="left"><span name="research/fund_project[${flag}${index}]/award_type">
						<x:out select="$research/award_type_name" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/repay_flag_name">
						<x:out select="$research/repay_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/repay_date"> <x:out
							select="$research/repay_date" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>

<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:choose>
	<c:when test="${grantCode==69 }">
	     <table border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
	          <tr>
		         <td nowrap align="right"><span class="color_red">*</span>近两年银行贷款总额：</td>
		         <td colspan='2'>
		              <input name="research/total_loan" id="loan_ceiling" class="input_text required" 
		              label="近两年银行贷款总额"  onfocus="InitInput.setNumber(this,7,4,2)" onchange="repayClean(this.id,'repay','colorRed');" style="text-align:right;"
		              value="<x:out select='$xmlData/data/research/total_loan' />" >
		         </td>
		         <td nowrap align="right"><span class="color_red" >*</span>余额：</td>
		         <td>
		             <input name="research/over"  class="input_text required" 
		             label="近两年银行贷款总额中的余额"  onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;"
		             value="<x:out select='$xmlData/data/research/over' />" >
		         </td>
		         <td nowrap align="right"><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
		         <td colspan='2'>
		             <c:set var="repay_value">
					      <x:out select="$xmlData/data/research/repay_value" />
				     </c:set> 
				     <input name="research/repay_value" type="hidden"   id="repay_value"
				            value="<x:out select="$xmlData/data/research/repay_value" />"
				            label="近两年银行贷款总额中的到期偿还情况" /> 
				     <input name="research/repay_name" type="hidden" id="repay_name"
				            value="<x:out select="$xmlData/data/research/repay_name" />" />
				     <cpt:select id="repay" key="repay"  onChange="initControlValue('repay')" value="${repay_value}">
				     </cpt:select>
		         </td>
	          </tr>
	     </table>   
	</c:when>
</c:choose>

<br>
<div class="t_bar">申请单位经济效益情况(单位:万元)<span style="color:red" id="finance2013_qy"> （必须填写近三年的财务，如不足请到单位信息中完善财务信息并保存）</span><span style="color:red" id="finance2013_fqy"> （必须填写近两年的财务，如不足请到单位信息中完善财务信息并保存）</span></div>
<table border="0" cellspacing="0" cellpadding="0" class="table01" id="checkFinance2013">
	<thead>
		<tr>
			<th width="10%" align="center" nowrap>年度</th>
			<th width="15%" align="center">总产值</th>
			<th width="15%" nowrap="nowrap">(其中)高新技术产品产值</th>
			<th width="15%">总收入</th>
			<th width="15%">净利润</th>
			<th width="15%">纳税额</th>
			<th width="15%" nowrap="nowrap"><span class="color_red">*</span>研发投入额</th>
		</tr>
	</thead>
	<tbody id="tab">
	   
		<x:forEach var="eco"
			select="$xmlData/data/organization/finances/finance">
			<c:set var="year">   
				<x:out select="$eco/@year" />
			</c:set>
			<c:choose>
				<c:when test="${year==statYear-2}">
					<tr>
						<td align="center">
						    <input type="hidden"
							name="organization/finances/finance[00]@sequence_no" value='1' />
							<input type="hidden"
							name="organization/finances/finance[00]@year"
							value="${statYear-2}" />
							<span name="organization/finances/finance[00]/year_name">前年</span>
						</td>
						<td align="right"><span
							name="organization/finances/finance[00]/output"><x:out
									select="$eco/output" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[00]/output_hightech"><x:out
									select="$eco/output_hightech" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[00]/income"><x:out
									select="$eco/income" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[00]/proft"><x:out
									select="$eco/proft" /></span>
						</td>
						<td align="right"><span
							name="organization/finances/finance[00]/fax"> <x:out
									select="$eco/fax" />
						</span>

						</td>
						<td align="center">
						<input type="hidden" id="relief_fax_income_yanfa5" name="organization/finances/finance[00]/relief_fax_income_yanfa" value="">
						<input id="relief_fax_income_yanfa6" name="organization/bnfinances/relief_fax_income_yanfa3" style="width:80px;text-align:right"
				        label="前年中的研发投入额" class="input_text required" onchange="setYanFa(this.id,'relief_fax_income_yanfa5');" onfocus="InitInput.setNumber(this,7,4,2)" 
				        value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa3' />" />
						</td>
						
                        
					</tr>
					
				</c:when>
			</c:choose>

		</x:forEach>
	
	
	
	  
		<x:forEach var="eco"
			select="$xmlData/data/organization/finances/finance">
			<c:set var="year">   
				<x:out select="$eco/@year" />
			</c:set>
			<c:choose>
				<c:when test="${year==statYear-1}">
					<tr>
						<td align="center">
						   
							<input type="hidden"
							name="organization/finances/finance[01]@year"
							value="${statYear-1}" />
							
							 <input type="hidden"
							name="organization/finances/finance[01]@sequence_no" value='2' />
							
							<span name="organization/finances/finance[01]/year_name">上年度</span>
						</td>
						<td align="right"><span
							name="organization/finances/finance[01]/output"><x:out
									select="$eco/output" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[01]/output_hightech"><x:out
									select="$eco/output_hightech" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[01]/income"><x:out
									select="$eco/income" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[01]/proft"><x:out
									select="$eco/proft" /></span>
						</td>
						<td align="right"><span
							name="organization/finances/finance[01]/fax"> <x:out
									select="$eco/fax" />
						</span>

						</td>
						<td align="center">
						<input type="hidden" id="relief_fax_income_yanfa3" name="organization/finances/finance[01]/relief_fax_income_yanfa" value="">
						<input id="relief_fax_income_yanfa4" name="organization/bnfinances/relief_fax_income_yanfa2" style="width:80px;text-align:right"
				        label="上年度中的研发投入额" class="input_text required" onchange="setYanFa(this.id,'relief_fax_income_yanfa3');" onfocus="InitInput.setNumber(this,7,4,2)" 
				        value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa2' />" />
						</td>
						
						
					</tr>
					
				</c:when>
			</c:choose>
		</x:forEach>

        <x:forEach var="eco"
			select="$xmlData/data/organization/finances/finance">
			<c:set var="year">   
				<x:out select="$eco/@year" />
			</c:set>
			<c:choose>
				<c:when test="${year==statYear}">
					<tr>
						<td align="center">
						   
							<input type="hidden"
							name="organization/finances/finance[02]@year"
							value="${statYear}" />
							
							 <input type="hidden"
							name="organization/finances/finance[02]@sequence_no" value='3' />
							
							<span name="organization/finances/finance[02]/year_name">本年度预计</span>
						</td>
						<td align="right"><span
							name="organization/finances/finance[02]/output"><x:out
									select="$eco/output" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[02]/output_hightech"><x:out
									select="$eco/output_hightech" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[02]/income"><x:out
									select="$eco/income" /></span>

						</td>
						<td align="right"><span
							name="organization/finances/finance[02]/proft"><x:out
									select="$eco/proft" /></span>
						</td>
						<td align="right"><span
							name="organization/finances/finance[02]/fax"> <x:out
									select="$eco/fax" />
						</span>

						</td>
						<td align="center">
						<input type="hidden" id="relief_fax_income_yanfa1" name="organization/finances/finance[02]/relief_fax_income_yanfa" value="">
						<input id="relief_fax_income_yanfa2" name="organization/bnfinances/relief_fax_income_yanfa" style="width:80px;text-align:right"
				        label="本年度预计中的研发投入额" class="input_text required" onchange="setYanFa(this.id,'relief_fax_income_yanfa1');" onfocus="InitInput.setNumber(this,7,4,2)" 
				        value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa' />" />
						</td>
					</tr>
					
				</c:when>
			</c:choose>
		</x:forEach>
        <!-- 
		<tr>
			<td nowrap align="center">
			    <span class="color_red">*</span><span name="organization/bnfinances/year_name" >本年度预计</span>
			    <input type="hidden" name="organization/bnfinances/year" value="${statYear}" />
			</td>
			<td nowrap align="center"><input
				name="organization/bnfinances/output" label="本年度预计中的总产值"
				class="input_text required" style="width:80px;text-align:right"
				onfocus="InitInput.setNumber(this,7,4,2)"
				value="<x:out select='$xmlData/data/organization/bnfinances/output' />" />
			</td>
			<td align="center"><input
				name="organization/bnfinances/output_hightech"
				label="本年度预计中的高新技术产品产值" class="input_text required"
				style="width:80px;text-align:right"
				onfocus="InitInput.setNumber(this,7,4,2)" 
				value="<x:out select='$xmlData/data/organization/bnfinances/output_hightech' />" />
			</td>
			<td align="center"><input
				name="organization/bnfinances/income" label="本年度预计中的总收入"
				style="width:80px;text-align:right"
				class="input_text required" 
				onfocus="InitInput.setNumber(this,7,4,2)" 
				value="<x:out select='$xmlData/data/organization/bnfinances/income' />" />
			</td>
			<td align="center"><input
				name="organization/bnfinances/proft" label="本年度预计中的净利润"
				style="width:80px;text-align:right"
				class="input_text required" width="50px"
				onfocus="InitInput.setNumber(this,7,4,2)" 
				value="<x:out select='$xmlData/data/organization/bnfinances/proft' />" />
			</td>
			<td align="center"><input
				name="organization/bnfinances/fax" label="本年度预计中的纳税额"
				style="width:80px;text-align:right"
				class="input_text required"
				onfocus="InitInput.setNumber(this,7,4,2)" 
				value="<x:out select='$xmlData/data/organization/bnfinances/fax' />" />
			</td>
			<td align="center"><input
				name="organization/bnfinances/relief_fax_income_yanfa"
				style="width:80px;text-align:right"
				label="本年度预计中的研发投入额" class="input_text required"
				onfocus="InitInput.setNumber(this,7,4,2)" 
				value="<x:out select='$xmlData/data/organization/bnfinances/relief_fax_income_yanfa' />" />
			</td>
			 -->
		</tr>
	</tbody>
</table>
<script type="text/javascript">
	$(function() {
		$("#orgInfo tr:even").addClass("li_1");
		$("#orgInfo tr:odd").addClass("li_2");
		$("#orgInfo2 tr:even").addClass("li_1");
		$("#orgInfo2 tr:odd").addClass("li_2");
		$("#orgInfo3 tr:even").addClass("li_1");
		$("#orgInfo3 tr:odd").addClass("li_2");
		$("#contactInfo tr:even").addClass("li_1");
		$("#contactInfo tr:odd").addClass("li_2");
		$("#rateInfo tr:even").addClass("li_1");
		$("#rateInfo tr:odd").addClass("li_2");
		
		setYanFa('relief_fax_income_yanfa6','relief_fax_income_yanfa5');//初始化本年度预计 研发投入额
		setYanFa('relief_fax_income_yanfa4','relief_fax_income_yanfa3');//初始化本年度预计 研发投入额
		setYanFa('relief_fax_income_yanfa2','relief_fax_income_yanfa1');//初始化本年度预计 研发投入额
	});
	
	function setYanFa(id1,id2){
		var income_yanfa=$("#"+id1).val();
		if(income_yanfa=="")$("#"+id2).val("");	
		else $("#"+id2).val(income_yanfa);
		
	}
	
	$(document).ready (function() {
		repayClean('loan_ceiling','repay','colorRed');
		
	});
	function repayClean(obj,string1,string2){
		var value=$("#"+obj).val();
		
		if(value==0){
			$("#"+string1+"_value").removeClass("required");
			$("#"+string1).attr("disabled",true);
			$("#"+string2).hide();
			$("#"+string1).val("");
			$("#"+string1+"_value").val("");
			$("#"+string1+"_name").val("");
		}
		else
			{
			$("#"+string1+"_value").addClass("required");
			$("#"+string1).attr("disabled",false);
			$("#"+string2).show();
			}
		
	}
	/*
	$(document).ready (function() {
		 spit();
		 spit1();
			
	});
	function  spit(){
		 var tmp = $("span[name*='opt_model_name']:eq(0)").text();
		 var arr = new Array();
		 var str = tmp.replace(' ','').split("，");
		 for(var i=0;i<str.length;i++){
			 str[i]=$.trim(str[i]);
			 if(str[i]=="研究" || str[i]=="开发" ||str[i]=="生产" || str[i]=="销售" || str[i]=="咨询"){
				 arr.push(str[i]);
			 }
		 }
		 
		 $("span[name*='opt_model_name']:eq(0)").text(arr.join(","));
		 
		 
	 }
	function  spit1(){
		 var tmp = $("span[name*='chk_characteristic_name']:eq(0)").text();
		 var arr = new Array();
		 var str = tmp.replace(' ','').split("，");
		 for(var i=0;i<str.length;i++){
			 str[i]=$.trim(str[i]);
			 if(str[i]=="国家高新技术企业" || str[i]=="深圳市高新技术企业" ||str[i]=="其他科技型企业" || str[i]=="国内上市公司" || str[i]=="境外上市公司" || str[i]=="非上市公司"){
				 arr.push(str[i]);
			 }
		 }
		 
		 $("span[name*='chk_characteristic_name']:eq(0)").text(arr.join(","));
		 
		 
	 }
	*/
</script>
